package com.wongsir.springioc.service;

import com.wongsir.springioc.dao.UserDAO;
import com.wongsir.springioc.dao.impl.UserDAOImpl;
import com.wongsir.springioc.entity.User;

/**
 * @descrip 
 * @author wongsir
 * @time 2018年7月29日
 */
public class UserService {
	
	UserDAO userDao = new UserDAOImpl();
	
	public void add(User user) {
		userDao.save(user);
	}
	
	public void delete() {
		userDao.delete();
	}

	public UserDAO getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDAO userDao) {
		this.userDao = userDao;
	}
	
}
